//---------------------------------------------------------------------------

#ifndef TNotesH
#define TNotesH
#include "common.h"
//---------------------------------------------------------------------------
namespace WYHGloox{
	class TNotes : public AnnotationsHandler
	{
		private:
		   Client* _client;
		   Annotations *notes;
		   AnnotationsList lists;
		public:
		TOnNotes FOnNotes;
		TNotes(Client* client);
		virtual ~TNotes();
		virtual void handleAnnotations( const AnnotationsList &aList );
		void __fastcall GetNotes();
        AnnotationsList::iterator __fastcall DeleteNote(int index); //-1 all
		void __fastcall SaveNotes();
		AnnotationsList::iterator __fastcall EditNotes(unsigned int index,std::string jid,std::string note,std::string ctime,std::string mtime);
		AnnotationsList::iterator __fastcall AddNote(std::string jid,std::string note,std::string ctime,std::string mtime);
	};

};
using namespace WYHGloox;
#endif
